package com.mall.xiaomi.service;

import com.github.pagehelper.PageInfo;
import com.mall.xiaomi.exception.ExceptionEnum;
import com.mall.xiaomi.exception.XmException;
import com.mall.xiaomi.mapper.SeckillProductMapper;
import com.mall.xiaomi.mapper.SeckillTimeMapper;
import com.mall.xiaomi.pojo.SeckillProduct;
import com.mall.xiaomi.pojo.SeckillTime;
import com.mall.xiaomi.util.BeanUtil;
import com.mall.xiaomi.util.RedisKey;
import com.mall.xiaomi.vo.SeckillProductVo;
import org.apache.commons.lang3.ArrayUtils;
import org.springframework.amqp.AmqpException;
import org.springframework.amqp.rabbit.connection.CorrelationData;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.*;
import java.util.concurrent.TimeUnit;


public interface SeckillProductService {
    public List<SeckillProductVo> getProduct(String timeId);

    public void addSeckillProduct(SeckillProduct seckillProduct);

    public SeckillProductVo getSeckill(String seckillId);

    public void seckillProduct(String seckillId, Integer userId);

    public Long getEndTime(String seckillId);

    public List<SeckillTime> getTime();
}
